<template>
	<view class="">
		<!-- <view class="flexbetween margin_top" @click="jumpurl('/pages/qingzixun/fengcailist')">	
			<view class="flexleft">
				<view class="allline margin_right1"></view>
				<view class="sanshier xiaohei">优秀企业家风采</view>
			</view>
			<u-icon name="arrow-right" color="#666666"></u-icon>
		</view> -->
		<view class="mainpadding_top ffffff">
			<view class="sanshier bold xiaohei">会长风采</view>
			<view class="margin_top">
				<scroll-view scroll-x="true" style="width: 100%;">
					<view>
						<view class="flexleft">
							<view class=""v-for="item in fcList" :key="item.id" @click="jumpdetail('/pages/qingzixun/qiyejxq?id=',item.id)">
								<image :src="item.image_text"  
								class="margin_right radius" style="width: 200rpx;height: 250rpx;min-width: 200rpx;" mode=""></image>
								<view class="margin_top2 xiaohei strongtext yhxk" style="width: 200rpx;">{{item.sh}}</view>
								<view class="margin_top1 strongtext yhxk" style="width: 200rpx;">
									<text class="xiaohui margin_right2">{{item.username}}</text>
									<text class="xiaolv">{{item.shzw}}</text>
								</view>
							</view>
							
						</view>
					</view>
				</scroll-view>
			</view>
		</view>
		<!-- <view class="mainpadding_top ffffff">
			<view class="sanshier bold xiaohei">商会简介</view>
			<view class="margin_top">
				<u-parse :content="bottommsg.qiyejiafc_content"></u-parse>
			</view>
		</view> -->
		<view class="mainpadding">
			<view class=""  @click="jumpdetail('/pages/qingzixun/lianyih?text=',bottommsg.activity_name)">
				<view class="flexbetween margin_top" >
					<view class="flexleft">
						<view class="allline margin_right1"></view>
						<view class="sanshier xiaohei">{{bottommsg.activity_name}}</view>
					</view>
					<u-icon name="arrow-right" color="#666666"></u-icon>
				</view>
				<view class="margin_top">
					<image :src="bottommsg.activity_image" class="radius" style="width: 100%;height: 280rpx;" mode=""></image>
				</view>
			</view>
			<view class="flexbetween margin_top">
				<view class="flexleft">
					<view class="allline margin_right1"></view>
					<view class="sanshier xiaohei">往期活动回顾</view>
				</view>
			</view>
			<view class="mainpadding_top ffffff radius" v-for="item in list.data" :key="item.id" @click="jumpdetail('/pages/qingzixun/system?id=',item.id)" >
				<view class="flexbetween">
					<view class="flexcolumnbet margin_right" style="height: 150rpx;">
						<view class="titletext bold xiaohei lianghang">{{item.name}}</view>
						<view class="xiaohui strongtext">{{item.createtime_text}}</view>
					</view>
					<image :src="item.image_text" class="radius" style="width: 200rpx;min-width: 200rpx;height: 150rpx;" mode=""></image>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				bottommsg:{},
				page: 1,
				limit: 12,
				list: {
					data: []
				},
				fcList:[]
			}
		},
		onLoad(options) {
			uni.setNavigationBarTitle({
				title:options.text
			})
			this.getbottommsg()
			this.fengcai()
			this.init()
		},
		methods: {
			fengcai(){
				httpRequest.request('/api/index/qyjfcIndex', 'GET', {
				}).then(res => {
					this.fcList = res.data
				}).catch(err => {})
			},
			init(isPage, page) {
				httpRequest.request("/api/index/qyfcIndex", 'GET', {
					page: page || 1,
					limit: this.limit,
					type:1
				}, false, false, true).then(res => {
					if (res.code == 1) {
						let resList = res.data;
						let dataList = this.list;
						if (isPage == true) {
							this.list.data = dataList.data.concat(resList.data);
						} else {
							this.list = res.data
							this.list.data = resList.data;
						}
					}
				})
			},
			onReachBottom() {
				let _this = this;
				let list = _this.list;
				let page = _this.page;
				if (list.last_page <= page) {
					return false;
				}
				page++;
				_this.page = page;
				_this.init(true, page);
			},
			getbottommsg() { //获取轮播图
				httpRequest.request('/api/index/getConfigInfo', 'POST', {}).then(res => {
					this.bottommsg = res.data
				}).catch(err => {})
			},
		}
	}
</script>

<style>

</style>
